#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"



int main()
{
	SLNode* head= SLInit(&head);
	

	SLBackPush(head, 1);

	SLBackPush(head, 2);
	SLBackPush(head, 3);
	SLBackPop(head);

	SLBackPush(head, 1);
	SLFrontPush(head, 2);
	SLFrontPush(head, 3);
	SLPrint(head);
	//   3 2 1 2 1

	SLFrontPop(head);
	SLPrint(head);
	//    2 1 2 1

	SLNode* pos1 = SLDataFind(head, 1);
	SLInserAfter(pos1, 5);
	SLPrint(head);
	//    2 1 5 2 1

	SLErase(pos1);
	SLPrint(head);
	//    2 5 2 1

	SLNode* pos=SLDataFind(head, 5);
	//pos=NULL

	SLDestory(head);
	return 0;
}